console.log(111);
const promise = new Promise((resolve, reject) => {
  reject();
  console.log(222);
});
promise
  .then(() => {
    console.log(333);
    return new Promise((resolve) => {
      reject();
    });
  })//穿透
  .catch(() => {
    console.log(444);
  })//4
  .then(() => {
    console.log(555);//5
    return new Promise((reject, resolve) => {
      reject();
      // resolve();
    });
  })//fulfilled 
  .catch(() => {
    console.log(666);
    throw new Error("报错了~");
  })//穿透
  .then(() => {
    console.log(777);//7
    throw new Error("报错了~");
  })
  .then(() => console.log(888))//穿透
  .then(() => console.log(999))//穿透
  .catch(() => console.log(101010));//10
console.log(111111);
//结果 1 2 11 4 5 7 10